package myBean;

/**
 * Created by Administrator on 2018/6/10.
 */
public class AddBean {
    public int n;

    public int getN() {
        return n;
    }

    public void setN(int n) {
        this.n = n;
    }

    public int getADDER(){
        int sum = 0;
        for (int i=1;i<n+1;i++){
            sum = sum + i;
        }
        return sum;
    }
}
